<!DOCTYPE html>
<html>
<head>
	<title>地址列表</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta name="viewport" content="width=device-width,user-scalable=no" />
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('public_url');?>/css/common.css">
	<link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('public_url');?>/css/address_lst.css">
</head>
</head>
<body>

<!-- 	<div class="header">
		<div class="back">
			<a href="javascript:;"></a>
		</div>
		收货地址管理
	</div> -->
	<script type="text/javascript">
	

	</script>
	<div class="receiving_address list">
		<ul class="list-ul">
		 <?php 
		  if (!empty($address_lst)){
    			 foreach ($address_lst as $v):?>
    			 <div class="address_div">
            		 <div class="checkbox_div"><input type="checkbox" class="checkbox"  data-address-id="<?php echo $v['address_id'];?>"></div>
        			
            			<li data-addressid="<?php echo $v['address_id'];?>" id="li" class="list-li">
            				<div class="con">
            				 <a href="" data-href = "<?= site_url('Npoint_store/Address/address_detail?address_id='.$v['address_id'])?>">
                				<div class="name_tel">
                					<span class="name"><?php echo $v['name'];?></span>
                					<span class="tel"><?php echo $v['tel'];?></span>
                				</div>
                				<div class="ads">
                				<?php if ($v['is_default'] != 0){?>
                					<span class="default">默认</span>
                				<?php }?>
                					<span class="address" data-c="<?php echo $v['city']; ?>" data-pid="<?php echo $v['province_id']; ?>" data-cid="<?php echo $v['city_id']; ?>" data-p="<?php echo $v['province']; ?>"><?php echo $v['province']; echo $v['city']; echo $v['address'];?></span>
                				</div>
                				<!-- <a href = "<?= site_url('Npoint_store/Address/address_detail?address_id='.$v['address_id'])?>">
                				    <img src="<?php echo $this->config->item('public_url');?>/images/info.png" class="right_info" alt="">
                				</a> -->

                			 </a>	
            				</div>
            				<div class="btn"></div>
            		    </li>
        		    
    		    </div>
		    <?php endforeach;}?>
		</ul>
	</div>

	<div class="footer addnew_address">＋ 添加新地址</div>
		<!-- <script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/jquery.min.js"></script> -->
	<script type="text/javascript">
		var addressurl = "<?= site_url('Npoint_store/Address/address_lst')?>";
		var urls = "<?= site_url('Npoint_store/Order/confirm_order_detail')?>";
		var address_detail_urls = "<?= site_url('Npoint_store/Address/address_detail')?>";
		var del = " <?= site_url('Npoint_store/Address/address_del')?>";
		var urlcj = "<?= site_url('Npoint_store/Lucky/lucky_draw_record')?>"
		var urlsolits = "<?= site_url('Npoint_store/Slots_detail/lucky_slots_record')?>"
		var localhosthref = "<?= site_url('Npoint_store/Order/confirm_order_detail')?>";
	</script>
	
	<script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/zepto.min.js"></script>
	<script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/cookie.js"></script>
	<script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/delete.js"></script>
		 <script type="text/javascript">
	     $(function() {
	     	$('.list-li').touchWipe({itemDelete: '.btn'});

	     });
 	</script>
	<!-- <script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/jquery-3.2.1.min.js"></script>  -->
	<script type="text/javascript" src="<?php echo $this->config->item('public_url');?>/js/address_lst_new.js"></script>

</body>
</html>